"""


"""
from rest_framework import serializers

from goods.models import SpecificationOption, SPUSpecification


class GoodOptionSerializer(serializers.ModelSerializer):

    spec_id = serializers.IntegerField()
    spec = serializers.StringRelatedField(read_only=True)

    class Meta:
        model = SpecificationOption
        fields = "__all__"


class SPUSpecSerializer(serializers.ModelSerializer):

    class Meta:
        model = SPUSpecification
        fields = "__all__"
